<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
class error{
    public static function fatalError(){ 
        
        if ($e = error_get_last()) {
            mylogger($e, 'fatalError');
//            switch($e['type']){
//              case E_ERROR:
//              case E_PARSE:
//              case E_CORE_ERROR:
//              case E_COMPILE_ERROR:
//              case E_USER_ERROR:  
//                ob_end_clean();
//                BaseController::fatalError($e);
//                break;
//            }
        }
    }
}

